package day05;

public class Diguifangshi {

	
		public static int plus(int startNumber, int endNumber, int currentValue) {
			  currentValue += startNumber;
			  if (startNumber < endNumber) {
			  currentValue = plus(++startNumber, endNumber, currentValue);
			  }
			  return currentValue;
			  }
			  public static void main(String[] args) {
			  System.out.println(Diguifangshi.plus(1, 100, 0));
			  }
	}


